package com.carkeeper.user.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Table(name = "tb_user")
public class User implements Serializable {
    @Id
    private Long id;                 //id

    private String username;            //用户名称
    private String password;            //密码
    private String nickname;            //昵称
    private String headImgUrl;          //头像地址
    private String phone;               //电话
    private String sex;                 //性别
    private String status;              //状态
    private String cityCode;            //城市编码
    private String source;              //来源
    private String openId;              //微信openid
    private String unionId;             //关联id
    private String app;                 //app
    private Date createTime;            //创建时间
    private Date updateTime;            //修改时间
    private String address;             //用户地址


    public User() {
    }

    public User(Long id, String username, String password, String nickname, String headImgUrl, String phone, String sex, String status, String cityCode, String source, String openId, String unionId, String app, Date createTime, Date updateTime, String address) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.headImgUrl = headImgUrl;
        this.phone = phone;
        this.sex = sex;
        this.status = status;
        this.cityCode = cityCode;
        this.source = source;
        this.openId = openId;
        this.unionId = unionId;
        this.app = app;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.address = address;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
